﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MarvinsArena.Core;

namespace BattleLogic
{
	public class Missile : IMissile, ILogicObject
	{

		public string Name { get; set; }
		public double PositionX { get; set; }
		public double PositionY { get; set; }
		public double Radius { get { return 8.0f; } }
		public double Rotation { get; set; }
		public TypeWorldObjects TypeWorldObject { get { return TypeWorldObjects.Missile; } }

		public int Power { get { return 10; } }
		public double MoveSpeed { get { return 0.09; } }
		public bool Dead { get; set; }

		public Missile()
		{
			this.Name = "Missile";
			this.Dead = false;
		}

		public void Update(double deltaTime)
		{
			this.PositionX += this.MoveSpeed * deltaTime * Math.Cos(this.Rotation);
			this.PositionY += this.MoveSpeed * deltaTime * Math.Sin(this.Rotation);
		}
	}
}
